package com.bristua.order.enums;

/**
 * Created by Administrator on 2019/3/24.
 */
public enum OrderCode {
    GOODS_NOT_EXIST(10002,"商品不存在"),
    USER_TAKE_GOODS_ADDRESS_NOT_EXIST(10001,"缺少收货地址"),
    ORDER_NOT_FIND(10000,"订单不存在"),
    ORDER_HAS_PAY(10001,"该订单已支付，无法取消"),
    GOODS_EVALUTATE(0,"评价成功"),
    SEND_ORDER_SUCCESS(0,"下单成功"),
    ORDER_EXCEPTION(10001,"订单异常"),
    ORDER_AMT_EXCEPTION(10002,"订单金额异常"),
    CANCEL_ORDER_SUCCESS(0,"取消订单成功"),
    DELIVER_GOODS_SUCCESS(0,"发货成功"),
    CONFIRM_RECEIPT_SUCCESS(0,"确认收货成功")
    ;
    private OrderCode(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    private int code;
    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
